package com.zj.osm.model.service.impl;

import com.zj.osm.entity.greendao.Line;
import com.zj.osm.model.dao.ModuleMaterialsDao;
import com.zj.osm.model.pojo.ModuleMaterials;
import com.zj.osm.model.service.ModuleMaterialsService;

import java.util.List;

/**
 * @author jiang zhu on 2019/11/3
 */
public class ModuleMaterialsServiceImpl implements ModuleMaterialsService {

    private ModuleMaterialsDao moduleMaterialsDao = new ModuleMaterialsDao();

    @Override
    public List<ModuleMaterials> getModuleMaterialsByModuleId(String moduleID) {
        return moduleMaterialsDao.getModuleMaterialsByModuleId(moduleID);
    }

    @Override
    public List<ModuleMaterials> getModuleMaterialsByModuleId(String moduleID, Line line) {
        return moduleMaterialsDao.getModuleMaterialsByModuleId(moduleID,line);
    }
}
